gadgets.Container = function () {
    this.parentUrl_ = "http://" + document.location.host;
    this.country_ = "ALL";
    this.language_ = "ALL";
    this.view_ = "default";
    this.nocache_ = 1;
    this.maxheight_ = 2147483647
};
gadgets.Container.inherits(gadgets.Extensible);
gadgets.Container.prototype.userPrefStore = new gadgets.DefaultUserPrefStore();
gadgets.Container.prototype.gadgetService = new gadgets.GadgetService();
gadgets.Container.prototype.layoutManager = new gadgets.StaticLayoutManager();
gadgets.Container.prototype.setParentUrl = function (url) {
    this.parentUrl_ = url
};
gadgets.Container.prototype.setCountry = function (country) {
    this.country_ = country
};
gadgets.Container.prototype.setNoCache = function (nocache) {
    this.nocache_ = nocache
};
gadgets.Container.prototype.setLanguage = function (language) {
    this.language_ = language
};
gadgets.Container.prototype.setView = function (view) {
    this.view_ = view
};
gadgets.Container.prototype.setMaxHeight = function (maxheight) {
    this.maxheight_ = maxheight
};
gadgets.Container.prototype.getGadgetKey_ = function (instanceId) {
    return "gadget_" + instanceId
};
gadgets.IfrContainer = function () {
    gadgets.Container.call(this)
};
gadgets.IfrContainer.inherits(gadgets.Container);
gadgets.IfrContainer.prototype.gadgetService = new gadgets.IfrGadgetService();
gadgets.IfrContainer.prototype.setParentUrl = function (url) {
    if (!url.match(/^http[s]?:\/\//)) {
        url = document.location.href.match(/^[^?#]+\//)[0] + url
    }
    this.parentUrl_ = url
};
gadgets.container = new gadgets.IfrContainer();